-- GENERATED SPELL FOR [Unyielding Knight] --


function spell0_16906(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16906', 2303, 1)
end

function spell1_16906(pUnit, Event) --@Heal Other,Heal--
pUnit:FullCastSpellOnTarget(33910,pUnit)
pUnit:RegisterEvent('Sorts_16906', 4000, 1)
end

function Sorts_16906(pUnit, Event)
local choix_sorts_16906 = math.random(0, 1)
if choix_sorts_16906 == 0 then
pUnit:RegisterEvent('spell0_16906', 1, 1)
end
if choix_sorts_16906 == 1 then
pUnit:RegisterEvent('spell1_16906', 1, 1)
end
end

function mob16906_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16906', math.random(1500, 3000), 1)
end

function mob16906_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16906_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16906_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16906, 1, 'mob16906_Action')
RegisterUnitEvent(16906, 2, 'mob16906_Leave')
RegisterUnitEvent(16906, 3, 'mob16906_Kill')
RegisterUnitEvent(16906, 4, 'mob16906_Die')
